package com.example.common.config;


import io.netty.util.concurrent.DefaultThreadFactory;

import java.util.concurrent.*;

/**
 * @author DestinyCc
 * @date 2022/4/19
 */
public class ThreadPool {
    public static final ExecutorService executor = new ThreadPoolExecutor(
            256,
            256,
            120L,
            TimeUnit.SECONDS,
            new LinkedBlockingQueue<Runnable>(),
            new DefaultThreadFactory("Python-Executor-Pool"));


}
